<?php
use backend\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

$this->title = 'CRM管理系统－登陆';
AppAsset::register($this);
use yii\bootstrap\ActiveForm;
?>

<div class="login-box">
    <div class="login-logo">
        <b>Admin</b>LTE</a>
    </div>
    <!-- /.login-logo -->
    <div class="login-box-body">
        <p class="login-box-msg">Sign in to start your session</p>

        <?php $form = ActiveForm::begin(['id' => 'login-form','options' => [ 'enctype' => 'multipart/form-data' ]]); ?>

            <div class="form-group has-feedback">
                <?= $form->field($model, 'username', ['inputOptions' => ['placeholder' => $model->getAttributeLabel('请输入帐号')]])->label(false) ?>
            </div>
            <div class="form-group has-feedback">
                <?= $form->field($model, 'password', ['inputOptions' => ['placeholder' => $model->getAttributeLabel('请输入密码')]])->passwordInput()->label(false) ?>
            </div>


            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">
                        <label>
                            <?= $form->field($model, 'rememberMe')->checkbox()->label('记住密码') ?>
                        </label>
                    </div>
                </div>
                <!-- /.col -->
                <div class="col-xs-4">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">登　陆</button>
                </div>
                <!-- /.col -->
            </div>
        <?php ActiveForm::end(); ?>


    </div>
    <div class="toolbar clearfix">
        <div>
            <a href="#" class="forgot-password-link">
                <i class="icon-arrow-left"></i>
                忘记密码?
            </a>
        </div>

        <div>
            <a href="#" class="user-signup-link">
                我要注册
                <i class="icon-arrow-right"></i>
            </a>
        </div>
    </div>

    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->




